const express = require("express");
const data =require( './data.json' );

// 创建一个服务器
const app = express();

app.get('/list', (req, res) => {
    res.header("Access-Control-Allow-Origin", "*");
    res.json(data);
});


app.listen(8088 , () => {
    console.log("http://localhost:8088");
})